package com.wantup.dubbo.group;

import com.wantup.dubbo.service.ServiceApi;

import java.util.Arrays;
import java.util.List;
import java.util.UUID;

/**
 * @ClassName ServiceApiImpl
 * @Description TODO
 * @Author zhaoluowei
 * @Date 2019/9/8  10:21
 * @Version 1.0
 */

public class GroupApiImplB implements ServiceApi {
    @Override
    public String sendMsg(String message) {
        String msgId = UUID.randomUUID().toString();
        System.out.println(message);
        return "provider group B  - message : " + msgId + "  " + message;
    }

    @Override
    public String sendMsg02(String message) {
        String msgId = UUID.randomUUID().toString();
        return "provider - message 02 : " + msgId + "  " + message;
    }

    @Override
    public List<String> mergerMsg(String message) {
        String str = "group B "+message;
        System.out.println(str);
        return Arrays.asList(str);
    }
}
